#include <ColorSensor.h>
#include <Wire.h>

ColorSensor sensor(9, 5);
Color color;

void setup() {
  Serial.begin(9600);
  
  sensor.begin();
  sensor.ledOn();
}

void loop() {
  color = sensor.read();
  if (color == _RED) Serial.println("Red");
  else if (color == _GREEN) Serial.println("Green");
  else if (color == _LILAC) Serial.println("Lilac");
  else if (color == _YELLOW) Serial.println("Yellow");
  else if (color == _NONE) Serial.println("None");
}
